<?php
error_reporting(0);
$isadmin=1; 
include_once '../comm/config.php';
include_once '../comm/func.php';
include_once 'check.php';
//请不要随意修改代码，凡是随意修改代码造成的一切后果均由修改者本人承担，多多不再提供技术支持
$apisize=$_POST['apisize']; 	
$apijk=$_POST['apijk']; 
$hcopen=$_POST['hcopen']; 
$hctime=$_POST['hctime']; 

$link = mysql_connect($dbserver, $dbuser, $dbpass);
if (!$link) {die(ERR_DB);}
mysql_select_db($dbname);
mysql_query("set names utf8");
$sql = "update ".$BIAOTOU."websetting set hcopen='".$hcopen."',hctime='".$hctime."',apisize='".$apisize."',apijk='".$apijk."'";
mysql_query($sql);

echo "<script language=javascript>alert('缓存设置更新成功！即将跳转到设置页面...');window.location='temp.php'</script>";
mysql_close($link);
?>